import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:hospitable_rental/routes/routes.dart';

class Application extends StatelessWidget {
  late final router;

  Application() {
    router = FluroRouter();
    Routes.configureRoutes(router);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.green,
        iconTheme: IconThemeData(color: Colors.green),
      ),
      onGenerateRoute: router.generator,
      builder: EasyLoading.init(),
    );
  }
}
